<%@page import="javax.swing.text.Style"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.If"%>
<%@page import="com.e.User"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
    tbody,tr,td{
    border:solid green 1px;
    }
</style>
</head>
<body>
<table>
 <thead>
		          <tr>
		              <td>id</td>
		              <td>名字</td>
		              <td>性别</td>
		              <td>学籍号</td>
		              <td>操作</td>
		          </tr>
		     </thead>
<tbody>
		<%
		User user=(User)request.getAttribute("user");
		%>
		<tr style="background-color:greenyellow">
		<td><%=user.getSid() %></td>
		<td><%=user.getSname() %></td>
		<td><%=user.getSex() %></td>
		<td><%=user.getSno() %></td>
		<td><a href="UserServlet">返回用户列</a></td>
		</tr>
</tbody>
</table>
</body>
</html>